package top.bug.blog.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.bug.blog.common.BasePO;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_source")
@ApiModel("素材信息实体")
public class Source extends BasePO {

    @ApiModelProperty("文件名")
    @TableField("name")
    private String name;

    @ApiModelProperty("文件源名称（在存储站点中的名称）")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty("文件类型（图片/文档/其他）")
    @TableField("file_type")
    private String fileType;

    @ApiModelProperty("文件大小（字节）")
    @TableField("file_size")
    private Long fileSize;

    @ApiModelProperty("文件链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("素材分组id")
    @TableField("group_id")
    private String groupId;
}